{{template "header_en"}}
		<title>Go 步行者 - 索引</title>
	</head>

	<body id="body" style="padding-top: 60px; font-family: Microsoft Yahei; font-size: 13px;">
		{{template "navbar_zh" .}}
		<div class="container" style="width: 1000px;">
			<div id="main_content" class="row">
				<div style="margin-left: 20px;">
	                {{template "alert_zh" .}}
					<h1>索引</h1>

					{{with .IndexStats}}
					<p>统计信息：<b>{{.ProNum}}</b> 个项目，<b>{{.DeclNum}}</b> 种文档以及 <b>{{.FuncNum}}</b> 个函数.</p>
					{{end}}

					<div>
						<table class="table table-condensed table-hover">
							<thead>
								<tr>
									<th>项目路径</th>
									<th>简介</th>
									<th>排名值</th>
								</tr>
							</thead>

							<tbody>
								{{range .IndexPkgs}}
								<tr>
									<td><a href="/{{.Path}}">{{.Path}}</a></td>
									<td>{{.Synopsis}}</td>
									<td><span class="label label-info">{{.Rank}}</span></td>
								</tr>
								{{end}}
							</tbody>
						</table>
					</div>

					<div class="pagination pagination-right">
						<ul>
							<li>
								<a href="/index?p={{.BackPageNum}}">&laquo;</a>
							</li>

							{{range .PageList}}
							<li {{if .IsActive}}class="active"{{end}}>
								{{if .IsActive}}
								<a href="#_buttom">{{.PageNum}}</a>
								{{else}}
								<a href="/index?p={{.PageNum}}">{{.PageNum}}</a>
								{{end}}
							</li>
							{{end}}

							<li>
								<a href="/index?p={{.ForwardPageNum}}">&raquo;</a>
							</li>
						</ul>
					</div>	
				</div>
			</div>	
		</div>
		{{template "footer_zh" .}}
	</body>
</html>